package com.xl.activiti.demo.task;

import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Service;

/**
 * @author zhongwm
 */
@Slf4j
@Service
public class DemoService {

    public String getSentence(DelegateExecution execution) {
        log.info("execution:{}", execution);
        log.info("demoService .... sentence....");
        //throw new RuntimeException("error.");
        return "sentence";
    }
}
